//
// Created by Castle-Moriarty on 2025/11/5.
//

#include <iostream>
using namespace std;

class Bank {
public:
    int gongkai = 90;

private:
    int jimi = 23;

    friend void myfun(Bank &obj);
};

void myfun(Bank &obj) {
    cout << "我正在访问bank的数据" << obj.gongkai << endl;
    cout << "我正在访问bank的数据" << obj.jimi << endl;
    obj.jimi = 3333;
    cout << "我正在访问bank的数据" << obj.jimi << endl;
}


int main() {
    // 友元函数
    Bank obj;
    myfun(obj);


    return 0;
}
